package com.shareach.http.controller;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

import com.shareach.dao.mongo.impl.BaseShopDaoImpl;
import com.shareach.dao.mongo.impl.BizActivityDaoImpl;
import com.shareach.dao.mongo.impl.BizActivityShopDaoImpl;
import com.shareach.dao.mongo.impl.BizCardDaoImpl;
import com.shareach.dao.mongo.impl.BizTuanShopDaoImpl;
import com.shareach.dao.redis.impl.MatchRDao;
import com.shareach.dao.redis.impl.SnatchRDao;
import com.shareach.redis.RedisService;
import com.shareach.service.BizCardService;
import com.shareach.web.controller.BaseController;

@Controller
@RequestMapping("/star/snatch")
public class SnatchStartController extends BaseController {
	@Autowired
	private RedisService redisService;
	@Autowired
	private MatchRDao matchRDao;
	@Autowired
	private SnatchRDao snaRDao;
	@Autowired
	private BizTuanShopDaoImpl tuanShopDao;
	@Autowired
	private BizCardDaoImpl cardDao;
	@Autowired
	private BizActivityShopDaoImpl activityShopDao;
	@Autowired
	private BizActivityDaoImpl activityDao;
	@Autowired
	private BaseShopDaoImpl shopDao;
	@Autowired
	private BizCardService cardService;

	@RequestMapping(value = "/snatch.htm")
	public ModelAndView index(HttpServletRequest request, HttpServletResponse response) {
		ModelAndView mav = new ModelAndView("admin/star/snatch");
		return mav;
	}
	
	@RequestMapping("/jssnatch.htm")
	public ModelAndView jssnatch(HttpServletRequest request, HttpServletResponse response) {
		ModelAndView mav = new ModelAndView("admin/star/jssnatch");
		return mav;
	}
}